﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GTR.News.AdminModel;
using GTR.News.AdminDAL;
using System.Data;

namespace GTR.News.AdminBLL
{
    public class CommentBLL
    {
        CommentDAL dal = new CommentDAL();
        /// <summary>
        /// 评论表显示
        /// </summary>
        /// <returns></returns>
        public DataTable Commentxian()
        {
            return dal.Commentxian();

        }
        /// <summary>
        /// 评论添加
        /// </summary>
        /// <param name="c"></param>
        /// <returns></returns>
        public int Commentadd(Comment c)
        {
            return dal.Commentadd(c);

        }



        //public int commADD(Comment c)
        //{
        //    string s = "insert into Comment values('" + c.ComContent + "','" + c.ComDate + "','" + c.NewsID + "','" + c.MemberID + "')";
        //    return DBhelper.NonQuery(s);
        //}
        /// <summary>
        /// 删除评论表
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int commDEL(int id)
        {
            return dal.commDEL(id);
        }

    }
}
